faceW = 64;
faceH = 64;
numPerLine = 1;
ShowLine = 1;

Y = zeros(faceH*ShowLine,faceW*numPerLine);
for i=0:ShowLine-1
   for j=0:numPerLine-1
     Y(i*faceH+1:(i+1)*faceH,j*faceW+1:(j+1)*faceW) = reshape(fea(i*numPerLine+j+1,:),[faceH,faceW]);
   end
end
size(Y)
imwrite(uint8(Y),'1.bmp');
imagesc(Y);
colormap(gray);
